<?php
class VES_VendorsWarehouse_Block_Address_Created extends Mage_Adminhtml_Block_Widget
{
    
    protected $_configurableProduct;
    protected $_product;
    
    public function __construct()
    {
        parent::__construct();
        $this->setTemplate('ves_vendorswarehouse/address/created.phtml');
    }
    
    
    protected function _prepareLayout()
    {
        $this->setChild(
            'close_button',
            $this->getLayout()->createBlock('adminhtml/widget_button')
            ->setData(array(
                'label'   => Mage::helper('catalog')->__('Close Window'),
                'onclick' => 'savePostAddress(1)'
            ))
            );
    }
    public function isEdit()
    {
        if($this->getRequest()->getParam("id")){
            return true;
        }else{
            return false;
        }
    }
}